/**
 * @author elbek
 * 8:49:27 PM Feb 20, 2012
 */
package framework.customer.impl;

import java.util.ArrayList;
import java.util.List;

import framework.customer.BaseCustomer;
import framework.customer.IOrganization;
import framework.customer.IPerson;

/**
 * This class for Company Customers
 * 
 * @author aergashev
 * 
 */
public class CompanyCustomer extends BaseCustomer implements IOrganization {

	private List<IPerson> employees;

	public CompanyCustomer(String name, String street, String city, String zip,
			String email, String state, int employeeCount) {
		super(name, street, city, zip, email, state);
		this.employees = new ArrayList<IPerson>();
		this.noOfEmployees = employeeCount;
	}

	private int noOfEmployees;

	public int getNoOfEmployees() {
		return noOfEmployees;
	}

	public void setNoOfEmployees(int noe) {
		this.noOfEmployees = noe;
	}

	public Type getType() {
		return Type.Company;
	}

	@Override
	public List<IPerson> getEmployees() {
		return this.employees;
	}

	@Override
	public void addEmployee(IPerson employee) {
		this.employees.add(employee);
	}
}
